export class Result {
    constructor(code:number,data:unknown,message:string){
        this.code = code
        this.data = data
        this.message = message
    }
    code:number
    data:unknown
    message:string
}

export class ResultUtils {
    static success(data?:unknown) {
        return new Result(200,data||null,'SUCCESS')
    }
    static error(code:number,message:string) {
        return new Result(code,null,message)
    }
}